﻿

// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-17 12:32:29
// 负责人：liucx
// ===================================================================

using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Component.Model;
namespace OF.Component.IDAL
{

    /// <summary>
    /// 数据访问层接口  
    /// </summary>
    internal partial interface IMessagePool
    {

        /// <summary>
        /// 根据断言条件获取单个
        /// </summary>
        MessagePoolInfo QuerySingle(Expression<Func<MessagePoolInfo, bool>> predicate);
        /// <summary>
        /// 根据断言条件获获取列表
        /// </summary>
        IList<MessagePoolInfo> QueryList(Expression<Func<MessagePoolInfo, bool>> predicate);

        /// <summary>
        /// 更新消息为已发送
        /// </summary>
        /// <param name="messageStatus">消息状态</param>
        /// <param name="sendDate">发送时间</param>
        /// <param name="errorMsg">错误消息</param>
        /// <param name="userID">用户ID</param>
        /// <param name="messageID">消息ID</param>
        /// <returns></returns>
        int UpdateMessageSend(int messageStatus, DateTime sendDate, string errorMsg, long userID, long messageID);
    }


}